<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<form id="customerform" method="post" style="padding-top:1px">
    <input type="hidden" id="form-ctid" name="ctid"  >
    <input type="hidden" name="opid" value="0">
    <table style="margin:6px; width: 98%">
        <tr style="height: 30px">
            <td class="label" width="126px" style="text-align: right">合同编号：</td>
            <td>
                <input type="text" id="form-ctcode" readonly="readonly" class="selectp" name="ctcode" autocomplete="off" data-options="required:true" style="width:260px;height: 24px;">
            </td>
        </tr>
        <tr style="height: 30px">
            <td class="label" width="126px" style="text-align: right">合同名称：</td>
            <td>
                <input type="text" id="form-ctname" readonly="readonly" class="selectp" name="ctname"  autocomplete="off" data-options="required:true" style="width:260px;height: 24px;">
            </td>

        </tr>
        <tr style="height: 30px">
            <td class="label"  width="126px" style="text-align: right">收款金额：</td>
            <td>
                <input name="receive" style="width: 260px;height: 26px;" class="selectp">
            </td>
        </tr>
        <tr style="height: 30px">
            <td class="label"  width="126px" style="text-align: right">收款状态：</td>
            <td>
                <input  name="paymentStatus" style="width: 260px;height: 26px;" class="selectp">
            </td>
        </tr>
        <tr style="height: 30px">
            <td class="label" width="126px" style="text-align: right">收款日期：</td>
            <td>
                <input id="form-crtime" name="crtime" style="width: 260px;height: 26px;" class="selectp">
            </td>
        </tr>
    </table>
</form>
<script type="text/javascript" charset="utf-8" th:inline="none">
    $(function () {

        $('#form-crtime').datebox({
            formatter: function (date) {
                var y = date.getFullYear();
                var m = date.getMonth() + 1;
                var d = date.getDate();
                return y + '-' + (m < 10 ? ('0' + m) : m) + '-' + (d < 10 ? ('0' + d) : d);

            }
        });

        $(".combo-text").removeAttr("style");
        $(".combo-text").attr("style", "width: 260px;height: 26px;;line-height:26px");
        $(".combo-text").addClass("selectp");
        $(".combo-arrow").attr("style", "margin-left: -20px;margin-top: 5px;background-color:rgba(0,0,0,0)");
        $(".combo-panel").attr("style", "margin-top:10px;");
    })

</script>
</html>